package com.book.service.impl;

import com.book.entity.BookType;
import com.book.mapper.BookTypeMapper;
import com.book.service.BookTypeService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author SuperYu  2024/8/2
 */
@Service
public class BookTypeServiceImpl implements BookTypeService {

    @Resource
    BookTypeMapper bookTypeMapper;


    @Override
    public BookType findBookTypeByName(String name) {
        return null;
    }

    @Override
    public int addBookType(BookType bookType) {
        return 0;
    }

    @Override
    public PageInfo<BookType> findBookTypeByPage(int pageNum, int pageSize) {
        return null;
    }

    @Override
    public List<BookType> findAllBookType() {
        return bookTypeMapper.selectAll();
    }

    @Override
    public BookType findBookTypeByEdit(int id, String name) {
        return null;
    }
}
